<!-- payment-failure.vue -->
<template>
  <div class="payment-result">
    <h2>支付失败</h2>
    <p>支付失败，请重试或联系客服。</p>
    <el-button type="primary" @click="goToHome">返回首页</el-button>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();

const goToHome = () => {
  router.push('/');
};
</script>

<style scoped>
.payment-result {
  text-align: center;
  margin-top: 50px;
}
</style>